package com.bjpowernode.springboot.service.impl;

import com.alibaba.dubbo.config.annotation.Service;
import com.bjpowernode.springboot.service.StudentService;
import org.springframework.stereotype.Component;

/**
 * @DATE 2021--11--29 11:18
 */
@Component//加载到spring容器
@Service(interfaceClass = StudentService.class,version = "1.0.0",timeout = 15000)
//dubbo:service interface="" version="" timeout=""
public class StudentServiceImpl implements StudentService {



    @Override
    public Integer queryAllStudentCount() {
        //调用数据持久层
        return 1250;
    }
}
